<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>全局命名空间</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="userlandnaming.html">« 用户空间命名指南</a></li>
      <li style="float: right;"><a href="userlandnaming.rules.html">规则 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="userlandnaming.html">用户空间命名指南</a></li>
    <li>全局命名空间</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="userlandnaming.globalnamespace" class="section">
  <h2 class="title">全局命名空间</h2>
  <p class="para">
   以下代码结构会进入全局命名空间：
  </p>

  <ul class="itemizedlist">
   <li class="listitem"><p class="para">functions（函数）</p></li>
   <li class="listitem"><p class="para">classes（类）</p></li>
   <li class="listitem"><p class="para">interfaces（接口）</p></li>
   <li class="listitem"><p class="para">constants（常量，并非类常量）</p></li>
   <li class="listitem">
    <p class="para">在函数／方法之外定义的变量</p>
   </li>
  </ul>
 </div></div></div></body></html>